package com.bw.mvvm_comom.utils;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

import com.bw.mvvm_comom.BaseApplication;


public class ISConnectUtils {

    public static boolean isConnect(){
        ConnectivityManager systemService = (ConnectivityManager) BaseApplication.getApplication().getSystemService(Context.CONNECTIVITY_SERVICE);
        NetworkInfo activeNetworkInfo = systemService.getActiveNetworkInfo();
        if (activeNetworkInfo == null)
            return false;
            return activeNetworkInfo.isConnected();

    }
}


